<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>首页</h1>
    <!-- 当前页面的请求地址：http://localhost:3000 -->

    <!-- 
      form 表单，上传文件时，一定要注意将 enctype 属性设置为 multipart/form-data

     -->
    <!-- <form
      method="post"
      action="http://localhost:3000/xxx"
      enctype="multipart/form-data"
    >
      <input type="file" name="avatar" multiple />

      <input type="text" name="name" />

      <button type="submit">提交</button>
    </form> -->

    <form
      method="post"
      action="http://localhost:3000/yyy"
      enctype="multipart/form-data"
    >
      <label>
        正面
        <input type="file" name="zhengmian" />
      </label>

      <label>
        反面
        <input type="file" name="fangmian" />
      </label>

      <button type="submit">提交</button>
    </form>
  </body>
</html>
